package com.marquisx.tzdice.menu;

import android.content.Context;
import android.content.Intent;
import android.view.MenuItem;

import com.marquisx.tzdice.About;
import com.marquisx.tzdice.Help;
import com.marquisx.tzdice.R;
import com.marquisx.tzdice.Setting;

public class MenuManager
{
	public static boolean onOptionsItemSelected(Context context, MenuItem item)
	{
		switch (item.getItemId())
		{
			case R.id.menu_setting:
				context.startActivity(new Intent(context, Setting.class));
				return true;
			case R.id.menu_about:
				context.startActivity(new Intent(context, About.class));
				return true;
			case R.id.menu_help:
				context.startActivity(new Intent(context, Help.class));
				return true;
			/*
			case R.id.menu_exit:
				finish();
				return true;
			*/
		}
		
		return false;
	}
}
